package com.njwb.day03;

public class ccc {
    public static void main(String[] args) {
        int num = 5;
        printHello("hello", num);
    }

    public static void printHello(String str, int num) {
        if (num <= 0) {
            return;
        }
        System.out.println(str);
        printHello(str, num - 1);
    }
}